<template>
	<view>
		<view class="flex j-c a-c" style="width: 750rpx;height: 60vh;">
			<view class="t_c">
				<image class="pay_ok_img" src="../../../static/icon/payok.png"></image>
				<view class="" style="padding-top: 50rpx;padding-bottom: 50rpx;">
					<text class="w800 f34">支付成功</text>
				</view>
				<view @click="on_order" class="flex a-c j-c b_y order_but">
					<text class="cff">查看订单</text>
				</view>
				<view class="" style="height: 50rpx;">

				</view>
				<view @click="on_home" class="flex a-c j-c b_y return_but">
					<text class="c333">返回主页</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import $C from '@/common/banmi/config.js';
	export default {
		data() {
			return {

			}
		},
		onLoad(on) {
			this.jump_type = on.jump_type;
			this.jump_url = on.jump_url;

		},
		methods: {
			on_order() {
				if (this.jump_type == "redirectTo") {
					uni.redirectTo({
						url: '/' + this.jump_url
					})
					return
				}
				if (this.jump_type == "switchTab") {
					uni.switchTab({
						url: '/' + this.jump_url
					})
					return
				}



			},
			on_home() {
				uni.switchTab({
					url: '/' + $C.home_index
				})
			}

		}
	}
</script>

<style>
	.return_but {
		width: 600rpx;
		height: 80rpx;
		background-color: #F9F7FA;
	}

	.order_but {
		width: 600rpx;
		height: 80rpx;
		background-color: #15AF1D;
	}

	.pay_ok_img {
		width: 150rpx;
		height: 150rpx;
	}
</style>